package com.dome.controller;

import com.dome.entity.TtDetails;
import com.dome.service.impl.TtDetailsServiceImpl;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (TtDetails)表控制层
 *
 * @author makejava
 * @since 2021-07-07 15:51:16
 */
@RestController
@RequestMapping("ttDetails")
public class TtDetailsController {
    /**
     * 服务对象
     */
    @Resource
    private TtDetailsServiceImpl ttDetailsServiceImpl;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public TtDetails selectOne(Integer id) {
        return this.ttDetailsServiceImpl.queryById(id);
    }

}
